SetMacros
Sets macros to the document.
Syntax
expression.SetMacros(data);
expression
- A variable that represents a Api class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
data | Required | Macros | The Macros object containing the data about all the macros from the document. |
Returns
This method doesn't return any data.
Example
window.Asc.plugin.executeMethod ("SetMacros", [JSON.stringify (Content)], function () {
window.Asc.plugin.executeCommand ("close", "");
});